$(document).ready(function(){
    $('.search_text').focus(function(){
            $(this).val('').css('color','#000');
    });
    
    $(".registerform").Validform({
        tiptype:2
    });
    
    $("#KinSlideshow").KinSlideshow({
            moveStyle:"right",
            intervalTime:5,
            mouseEvent:"mouseover",
            titleFont:{TitleFont_size:12,TitleFont_color:"#FFFFFF"},
            btn:{btn_bgColor:"#000000",btn_bgHoverColor:"#FFFFFF",btn_borderWidth:0},
            titleBar:{titleBar_height:30}
    });
    
    var so = new SWFObject("tagcloud.swf", "tagcloud", "220", "200", "10", "#ffffff");
    so.addParam("wmode", "window");
    so.addVariable("tspeed", "200");
    so.addVariable("distr", "true");
    so.addVariable("xmlpath", "tagcloud.xml");
    so.write("key_content");
    
    $("img").lazyload({                                   
        effect : "fadeIn" //加载图片使用的效果(淡入)
    });
    
    $(".tab > li").mouseover(function(e){
        switch(e.target.id){
            case "tab1":
                $("#tab1").addClass("active");
                $("#tab2").removeClass("active");
                $("div.tab1").fadeIn();
                $("div.tab2").css("display", "none");
            break;
            case "tab2":
                $("#tab1").removeClass("active");
                $("#tab2").addClass("active");
                $("div.tab2").fadeIn();
                $("div.tab1").css("display", "none");
            break;
        }
    });
});